home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-19
/
pkey12_1.zip
/
GML.LSP
< prev
next >
Wrap
Text File
|
1992-09-13
|
639b
|
19 lines
;Global move layers (pick an object on the layer you want to move
;and specify destination layer)
;
;
(defun C:gml ()
(princ "\nPick an object on the layer to move. ")
(setq oer *error* *error* err2)
(setq ss (ssget))
(setq ut1(getstring "\nLayer to move entities to : "))
(setq counter 0)
(prompt "Moving layer...")
(setq e (ssname ss counter))
(setq l (cdr (assoc 8 (entget e))))
(setq S (ssget "X" (list (cons 8 l))))
(command "change" s "" "p" "la" ut1 "")
(setq counter (+ counter 1))
(princ))
(princ "\nType GML to execute group move layer.")
(princ "\nThis will move all entities on layer selected to new layer.")